<? $header->display();
if ($releaseLink) { ?>
	<div class="breadcrumb"><?=$releaseLink?></div>
<? } ?>

<h1>Albums</h1>

<?
if ($view == 'media') {
	$media->display();
} else if ($view == 'track-detail') {
	$detail->display();
} else if ($view == 'detail') {
	if (isset($releases)) {?>
	<div class="browser"><?
		foreach($releases as $r) {
			$r->display();
		}
	?>
	</div>
	<? 
	}
	$detail->display(); ?>
<? }

$footer->display(); ?>